<template>
  <div class="music">
    <h3>Music</h3>
    <div>
      <router-link tag="span" to="/home/music/musicdetail/1/20">周杰伦</router-link>
      <router-link tag="span" to="/home/music/musicdetail/2/25">林俊杰</router-link>
      <router-link tag="span" to="/home/music/musicdetail/3/40">陈奕迅</router-link>
    </div>
    <!-- 三级路由出口 -->
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  name: 'Music',
  mounted() {
    console.log('Music创建')
  },
  beforeDestroy() {
    console.log('Music销毁')
  }
}
</script>

<style scoped>
.music {
  color: orange;
}
span{
  background-color: #f3f3f3;
  font-size: 18px;
  color: #000;
  text-align: center;
  height: 20px;
  line-height: 20px;
    margin: 10px 40px;
}
</style>
